package com.osdp.sc.api.impl;

import com.osdp.sc.api.IRoleUserApi;
import com.osdp.sc.service.IScRoleUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * api实现层主要用于单机开发、测试使用
 */
@Service
public class RoleUserApiImpl implements IRoleUserApi {

    @Autowired
    private IScRoleUserService ucUserRoleService;

    @Override
    public List<String> queryRoleIdByUserId(String userId) {
        return ucUserRoleService.queryRoleIdByUserId(userId);
    }
}
